package com.donica.wamstest.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.donica.wamstest.entity.AirfleetVO;
import com.donica.wamstest.entity.AirlineVO;
import com.donica.wamstest.entity.AirplaneVO;
import com.donica.wamstest.entity.CommonFindVO;
import com.donica.wamstest.entity.DeviceFindVO;
import com.donica.wamstest.entity.DeviceInfoFindVO;
import com.donica.wamstest.entity.DeviceInfoVO;
import com.donica.wamstest.entity.DeviceVO;

@Mapper
public interface DeviceMapper {

	List<AirlineVO> searchAirlines(AirlineVO vo);
	
	//airfleet
	long InsertAirfleet(List<AirfleetVO> volist);
	long UpdateAirfleet(List<AirfleetVO> volist);
	long deleteAirfleet(List<AirfleetVO> volist);
	long searchAirfleetCount(CommonFindVO vo);
	List<AirfleetVO> searchAirfleet(CommonFindVO vo);
	
	//airplane
	long InsertAirplane(List<AirplaneVO> volist);
	long UpdateAirplane(List<AirplaneVO> volist);
	long deleteAirplane(List<AirplaneVO> volist);
	long searchAirplaneCount(CommonFindVO vo);
	List<AirplaneVO> searchAirplane(CommonFindVO vo);
	
	//device
	long InsertDevice(List<DeviceVO> volist);
	long UpdateDevice(List<DeviceVO> volist);
	long deleteDevice(List<DeviceVO> volist);
	long searchDeviceCount(DeviceFindVO vo);
	List<DeviceVO> searchDevice(DeviceFindVO vo);
	
	//deviceinfo
	long InsertDeviceInfo(List<DeviceInfoVO> volist);
	long UpdateDeviceInfo(List<DeviceInfoVO> volist);
	long deleteDeviceInfo(List<DeviceInfoVO> volist);
	long searchDeviceInfoCount(DeviceInfoFindVO vo);
	List<DeviceInfoVO> searchDeviceInfo(DeviceInfoFindVO vo);
	
	//计算离线
	long calDeviceOnline();
	
}
